Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#58865] add enterprise banner to new custom field form #17173

Conversation

Kharonus
Copy link
Member

Ticket

OP#58865

What are you trying to accomplish?

  • do not allow creation of hierarchy custom fields if no enterprise token is active

What approach did you choose and why?

  • show banner below form field selection, if
    • hierarchy is selected AND
    • enterprise token is not active
  • disable submit button, if the enterprise banner is shown

@Kharonus Kharonus requested a review from a team November 11, 2024 16:06
@Kharonus Kharonus self-assigned this Nov 11, 2024
- https://community.openproject.org/work_packages/58865
- show banner below form field selection, if
  - hierarchy is selected AND
  - enterprise token is not active
- disable submit button, if the enterprise banner is shown
@Kharonus Kharonus force-pushed the feature/58865-add-enterprise-gateway-to-creation-of-custom-fields-of-type-hierarchy branch from fde6441 to d27a077 Compare November 12, 2024 12:59
@apfohl apfohl self-requested a review November 13, 2024 07:47
inputs: {
collapsible: true,
opReferrer: "custom-field-hierarchy",
textMessage: "PLACEHOLDER - upgrade to Starkiller Base",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Kharonus, here is still a placeholder UI copy in the PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there is a TASK for Maya, to provide the correct text.

My take was, as this is behind a feature flag, we can merge it even with the placeholder. But before removing the flag, we need to replace it.

Copy link
Member

@apfohl apfohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small thing you can irgnore.

app/helpers/custom_fields_helper.rb Outdated Show resolved Hide resolved
@Kharonus Kharonus merged commit 9f9a969 into dev Nov 13, 2024
12 of 13 checks passed
@Kharonus Kharonus deleted the feature/58865-add-enterprise-gateway-to-creation-of-custom-fields-of-type-hierarchy branch November 13, 2024 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants